package pro.lingwu.rainbowmall.dao

import org.apache.ibatis.annotations.Mapper
import pro.lingwu.rainbowmall.dto.User

/**
 * to access user's data
 */
@Mapper
interface UserDao {

    /**
     * 添加用户
     */
    fun addUser(user: User)

    /**
     * 查询用户
     */
    fun findUser(account: String?): User?

}